{% extends "../base_adminlte.html" %}

{% block content %}
<div class="content-wrapper">
  <section class="content-header">
    <h1>
      QA
      <small>智能问答系统</small>
    </h1>
    <ol class="breadcrumb">
      <li><a href="#"><i class="fa fa-dashboard"></i> QA</a></li>
      <li class="active">智能问答系统</li>
    </ol>
  </section>

  <section class="content">
      <form  action="/chatbot/upload" method="post" enctype="multipart/form-data">
          <table style="border-collapse:separate; border-spacing: 0px 10px;
            margin-top: 10%;margin-left: 40%;">
              <tr><td><h3>{{ msg }}</h3></td></tr>
              <tr><td> <a>上传文件格式请参考模板,内容请新增在模板后面，勿清空，文件名为1.csv</a></td></tr>
              <tr><td>
              <input type="file" name="myfile">
              </td></tr>
              <tr><td>
              <input type="submit" value="上传文件" >
              </td></tr>
          <tr><td>
      <button onclick="location.href='/chatbot/download'" type="button" value="模板下载" >模板下载</button>
          </td></tr>
          </table>
     </form>
  </section>
</div>

{% endblock %}
